package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@TableName(value = "t_device_custom_data")
public class DeviceCustomDataEntity extends BaseEntity {
    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * tag
     */
    @NotBlank(message = "标签名不可为空")
    private String tag;

    /**
     * 分类ID
     */
    private String classifyId;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备属性ID
     */
    private String dataTypeId;
}
